package com.example.mobile2130606012zxx0414;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

public class MainActivity extends AppCompatActivity {


    private RecyclerView rvMainCarline;
    private String[]carLineNo={"轿车车型生产环节1","轿车车型生产环节2"};
    private String[]carLineName={"轿车汽车放置底盘","轿车汽车左前悬挂"};

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
        rvMainCarline.setLayoutManager(new LinearLayoutManager(this));
        CarLineAdapter adapter =new CarLineAdapter(carLineNo,carLineName);
        rvMainCarline.setAdapter(adapter);


    }

    private void initView() {
        rvMainCarline = (RecyclerView) findViewById(R.id.rvMainCarline);
    }
}